import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import SubjectView from '../views/SubjectView.vue';
import LabelView from '../views/LabelView.vue';
import QuestionTypeView from '../views/QuestionTypeView.vue';
import QuestionLevelView from '../views/QuestionLevelView.vue';
import QuestionView from '../views/QuestionView.vue';

const routes = [
  { path: '/', component: HomeView },
  { path: '/subject', component: SubjectView },
  { path: '/label', component: LabelView },
  { path: '/question-type', component: QuestionTypeView },
  { path: '/question-level', component: QuestionLevelView },
  { path: '/question', component: QuestionView },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;